package com.example.demo;

public class TestCode {

    String name = "a";


    public static void main(String[] args) {

    }
}

class A{
    final String name = "a";
    final protected void test(){
        // this.name = "b"; // 常量无法被再次赋值
    }
}


class B extends A{
    void t(){
        this.test();
    }

}

class C extends B{
    void a(){
        this.test();
    }
}


interface Usb{
    private void a(){

    }
    default void b(){
        this.a();
    }
}

class Usb3 implements Usb{

    public void c() {
        this.b();
    }
}
